<div class="btn-group">
  <%= link_to("详细",user_folder_path(user_folder),:class=>"btn btn-primary btn-sm")%>
  <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu" role="menu">
  <li>
     <%= link_to '进入', docs_user_folder_path(user_folder) %>
  </li>
  <% if can? :update,user_folder%>
	 <li><%= link_to '编辑',edit_user_folder_path(user_folder) %></li>
  <%end%>
  <%if can? :destroy,user_folder%>
    <li><%= link_to '删除',user_folder_path(user_folder), method: :delete, data: { confirm: 'Are you sure destroy folder?' } %></li>
    <%end%>
 </ul>
</div>